<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,i) in items" :key='i'>
               {{item.name}}--{{item.type.join('-')}}
            </li>
        </ul>
    </div>
    <script>
    const vm={
            data(){
                return{
                    items:[{
                        name:'苹果',
                        type: ['促销5者','15.5元']  
                    },{
                        name: '香蕉',
                        type: ['促销5者','7.5元']
                    }, {
                        name: '雪梨',
                        type: ['促销5者','32.5元']
                    }, {
                        name: '柑橘',
                        type: ['促销5者','7.5元']
                    }]
                }
            }
        }
        Vue.createApp(vm).mount('#app')
    </script>
</body>
</html>